// 静态路由
export const constantRouterMap = [
  {
    path: '/',
    redirect: 'index',
    component: resolve => require(['../views/index/index'], resolve),
    children: [
      {
        path: '/index',
        name: 'index',
        component: resolve => require(['../views/index/index'], resolve),
        meta: {
          auth: false,
          title: '技术博客、开源分享',
        },
        children: []
      }
    ]
  },
  {
    path: '/article/:id.html',
    name: 'article',
    component: resolve => require(['../views/article/index'], resolve),
    meta: {
      auth: false,
      title: '文章详情页'
    },
    children: []
  },
  {
    path: '/category/:id',
    name: 'category',
    component: resolve => require(['../views/category/index'], resolve),
    meta: {
      auth: false,
      title: '分类列表'
    },
    children: []
  },
  {
    path: '/guestbook',
    name: 'guestbook',
    component: resolve => require(['../views/guestbook/index'], resolve),
    meta: {
      auth: false,
      title: '留言板'
    },
    children: []
  },
  {
    path: '/link',
    name: 'link',
    component: resolve => require(['../views/link/index'], resolve),
    meta: {
      auth: false,
      title: '友情链接'
    },
    children: []
  },
  {
    path: '/about',
    name: 'about',
    component: resolve => require(['../views/about/index'], resolve),
    meta: {
      auth: false,
      title: '关于'
    },
    children: []
  },
  {
    path: '/login',
    name: 'login',
    component: resolve => require(['../views/ucenter/login'], resolve),
    meta: {
      auth: false,
      title: '登录'
    },
    children: []
  },
  {
    path: '/404',
    name: '404',
    component: resolve => require(['../views/error/notFound'], resolve),
    meta: {
      auth: false,
      title: '404'
    },
    children: []
  },
]
